package cn.team11.smarteye.fragment;

import android.app.Dialog;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.text.Html;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import cn.team11.sds.dayi.R;

import cn.team11.smarteye.base.BaseDialog;
import cn.team11.smarteye.misc.SConstants;
import cn.team11.smarteye.service.CatEyeService;

/**
 * Created by Murphy on 2017/11/3.
 */

public class DeleteDeviceDialogFragment extends BaseDialog{

    public DeleteDeviceDialogFragment() {
    }

    @NonNull
    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        return super.onCreateDialog(savedInstanceState);
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        TextView tipsTv = new TextView(getActivity());
        tipsTv.setText(Html.fromHtml(getActivity().getResources().getString(R.string.delete_device_confirm_tips)));
        setContent(tipsTv);
        setTitle(getActivity().getResources().getString(R.string.device_delete_txt));
        return super.onCreateView(inflater, container, savedInstanceState);
    }
}
